<html>
<head><meta charset="utf-8"><title>Config file for cargo-audit · wg-secure-code · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/index.html">wg-secure-code</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Config.20file.20for.20cargo-audit.html">Config file for cargo-audit</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="216127171"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Config%20file%20for%20cargo-audit/near/216127171" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Config.20file.20for.20cargo-audit.html#216127171">(Nov 09 2020 at 18:46)</a>:</h4>
<p>Hello!<br>
I feel super dumb right now, I see there is a audit.toml.example shipped in the cargo-audit repository. I tried to use it but I cannot seem to find the suitable cli option to specify the config file.<br>
I have tried:</p>
<div class="codehilite"><pre><span></span><code>$ cargo audit --config audit.toml
error: unrecognized option `--config`

cargo-audit 0.13.1
Tony Arcieri &lt;bascule@gmail.com&gt;
Audit Cargo.lock for crates with security vulnerabilities

FLAGS:
    -c, --config CONFIG       path to configuration file
    -h, --help                print help message
    -v, --verbose             be verbose
</code></pre></div>
<p>It's really surprising because this help message suggest the usage of <code>-c</code> but actually <code>-c</code> is unrelated flag color and <code>--config</code> does not work as shown.</p>



<a name="216127525"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Config%20file%20for%20cargo-audit/near/216127525" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Config.20file.20for.20cargo-audit.html#216127525">(Nov 09 2020 at 18:49)</a>:</h4>
<p>My use case is that there are some advisories that I want to ignore and I don't want to specify all of them on the cli, I would rather use the config file</p>



<a name="216137348"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Config%20file%20for%20cargo-audit/near/216137348" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Config.20file.20for.20cargo-audit.html#216137348">(Nov 09 2020 at 20:11)</a>:</h4>
<p><span class="user-mention" data-user-id="281572">@marmeladema</span> if you place it in <code>.cargo/audit.toml</code> it should pick it up automatically</p>



<a name="216148598"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Config%20file%20for%20cargo-audit/near/216148598" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Config.20file.20for.20cargo-audit.html#216148598">(Nov 09 2020 at 22:02)</a>:</h4>
<p>Oh ok thanks! I'll try that tomorrow!</p>



<a name="216148622"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Config%20file%20for%20cargo-audit/near/216148622" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Config.20file.20for.20cargo-audit.html#216148622">(Nov 09 2020 at 22:02)</a>:</h4>
<p>Is this documented somewhere and I missed it?</p>



<a name="216158728"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Config%20file%20for%20cargo-audit/near/216158728" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Config.20file.20for.20cargo-audit.html#216158728">(Nov 10 2020 at 00:05)</a>:</h4>
<p>it's new in v0.13</p>



<a name="216158742"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Config%20file%20for%20cargo-audit/near/216158742" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Config.20file.20for.20cargo-audit.html#216158742">(Nov 10 2020 at 00:05)</a>:</h4>
<p>not sure if the docs have been appropriately updated</p>



<a name="216188921"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Config%20file%20for%20cargo-audit/near/216188921" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> marmeladema <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Config.20file.20for.20cargo-audit.html#216188921">(Nov 10 2020 at 09:39)</a>:</h4>
<p>Is there anything I can do to help? Where would be the place to document this feature? The README?</p>



<a name="216272177"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/146229-wg-secure-code/topic/Config%20file%20for%20cargo-audit/near/216272177" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Tony Arcieri <a href="https://rust-lang.github.io/zulip_archive/stream/146229-wg-secure-code/topic/Config.20file.20for.20cargo-audit.html#216272177">(Nov 10 2020 at 20:48)</a>:</h4>
<p>sure?</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>